﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NDF.XnaLibrary.Models;

namespace NDF.XnaLibrary.EnumEqualityComparers
{
	public class EquipmentTypeEqualityComparer : IEqualityComparer<EquipmentType>
	{
		private static EquipmentTypeEqualityComparer defaultInstance;

		public static EquipmentTypeEqualityComparer Default
		{
			get
			{
				if (defaultInstance == null)
					defaultInstance = new EquipmentTypeEqualityComparer();
				return defaultInstance;
			}
		}

		public bool Equals(EquipmentType x, EquipmentType y)
		{
			return x == y;
		}

		public int GetHashCode(EquipmentType obj)
		{
			return obj.GetHashCode();
		}
	}
}